<script type="text/javascript">
$(document).ready(function(){
	parent.showButton("save");
    $('#birth').datepicker({
    	duration: '',
    	dateFormat: 'yy-mm-dd',
        showTime: false,
        changeYear: true,
        changeMonth: true,
        constrainInput: true,
        firstDay:0,
        time24h: false
     });
    KE.show({
        id : 'ke_remark',
        items : [
  				'fontname', 'fontsize', '|', 'textcolor', 'bgcolor', 'bold', 'italic', 'underline',
  				'removeformat', '|', 'justifyleft', 'justifycenter', 'justifyright', 'insertorderedlist',
  				'insertunorderedlist', '|', 'emoticons', 'image', 'link', 'unlink']
    });
});

function doButton(btn){
    if(btn == "save"){
    	KE.sync('ke_remark');
        $("#form").submit();
	}
}
</script>

  <div class="content" style="min-height:50px;">
    <form action="__URL__/index_act/act/{$act}" method="post" enctype="multipart/form-data" id="form">
    <input type="hidden" name="act" id="act" value="{$act}" />
    <input type="hidden" name="id" value="{$info.id}" />
      <table class="form">
        <tr>
          <td><span class="required">*</span>名称：</td>
          <td><input type="text" name="name" value="{$info['name']}" /></td>
          
        </tr>
        <tr>
          <td><span class="required">*</span>班级：</td>
          <td>
          	<select name="class_id">
          		<option value="">请选择</option>
          	  <volist name="Class" id="val">
          		<option value="{$val.id}" <if condition="$info[class_id] eq $val[id]">selected</if> >{$val.name}</option>
          	  </volist>
          	</select>
          </td>
        </tr>
        <tr>
          <td><span class="required">*</span>url地址：</td>
          <td><input type="text" id="url" name="url" value="{$info.url}" /></td>
        </tr>
      </table>
    </form>
  </div>